//
//  ViewController.m
//  16-UICollectionViewCycleImage
//
//  Created by 曹曹 on 16/8/4.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "ViewController.h"
#import "GXCycleImages.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet GXCycleImages *cycleImages;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSMutableArray *array = [NSMutableArray array];
    for (int i = 0; i < 5; i++) {
        [array addObject:[NSString stringWithFormat:@"%d.jpg", i]];
    }
    NSString *firstImage = [array firstObject];
    NSString *lastImage = [array lastObject];
    [array insertObject:lastImage atIndex:0];
    [array addObject:firstImage];
    _cycleImages.imagesArray = array;
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
